﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity; 
namespace Skynet.BusinessLogic.Test
{
    public class Program
    {
        public static void Main(string[] args)
        {

            var Container = UnityHelper.BuildUnityContainer();
            var rep = Container.Resolve<BusinessLogic.DataAccess.IExamCategoryRepository>();

            System.Threading.Tasks.Parallel.For(1, 1000, delegate(int i)
            {
                var reader = rep.GetAllStream();
                while (reader.Read())
                {
                    Console.WriteLine(reader[1].ToString());  
                }
            });

            Console.ReadLine();  
        }
    }
}
